# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-asysocks
_pkgname=asysocks
pkgver=0.2.17
pkgrel=1
pkgdesc='Socks5 / Socks4 client and server library.'
arch=('any')
url='https://pypi.org/project/asysocks/#files'
license=('MIT')
depends=('python' 'python-asn1crypto')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f9cc5afb2edc5eebc1e4cb9c933e71daf56c909fc3742f4b2aed0d39e3cca57439f83b932c2b423aba609b732a54c7807ceacd5deea4c1a2cfb6eed9d31c534a')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

